package com.keqing.tomato.util;

import android.util.Log;

public class ButtonUtil {
    private static long lastClickTime = 0;
    private static final int CLICK_TIME = 1000;//快速点击时间间隔

    //判断按钮是否快速点击
    public static boolean isFastClick(){
        long time = System.currentTimeMillis();
        if (time - lastClickTime < CLICK_TIME){
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
